home *** CD-ROM | disk | FTP | other *** search
/ Micromanía: 150 Juegos 2010 / 150Juegos_16.iso / Shareware / Shape Smash / shape-smash.swf / scripts / mx / events / ModuleEvent.as < prev    next >
Encoding:
Text File  |  2010-05-14  |  1.2 KB  |  44 lines

  1. package mx.events
  2. {
  3.    import flash.events.Event;
  4.    import flash.events.ProgressEvent;
  5.    import mx.core.mx_internal;
  6.    import mx.modules.IModuleInfo;
  7.    
  8.    use namespace mx_internal;
  9.    
  10.    public class ModuleEvent extends ProgressEvent
  11.    {
  12.       mx_internal static const VERSION:String = "2.0.1.0";
  13.       
  14.       public static var ERROR:String = "error";
  15.       
  16.       public static var PROGRESS:String = "progress";
  17.       
  18.       public static var READY:String = "ready";
  19.       
  20.       public static var SETUP:String = "setup";
  21.       
  22.       public static var UNLOAD:String = "unload";
  23.       
  24.       public var errorText:String;
  25.       
  26.       public function ModuleEvent(param1:String, param2:Boolean = false, param3:Boolean = false, param4:uint = 0, param5:uint = 0, param6:String = null)
  27.       {
  28.          super(param1,param2,param3,param4,param5);
  29.          this.errorText = param6;
  30.       }
  31.       
  32.       public function get module() : IModuleInfo
  33.       {
  34.          return target as IModuleInfo;
  35.       }
  36.       
  37.       override public function clone() : Event
  38.       {
  39.          return new ModuleEvent(type,bubbles,cancelable,bytesLoaded,bytesTotal,errorText);
  40.       }
  41.    }
  42. }
  43.  
  44.